﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace pdfer
{
    public class PdfPage
    {
        private PdfDocument pdfDocument;
        private PdfParser pdfParser;
        private Int32 pageIdx;
        internal PdfPage(PdfDocument pdfDocument, Int32 pageIdx) 
        {
            this.pdfDocument = pdfDocument;
            pdfParser = pdfDocument.pdfParser;
            this.pageIdx = pageIdx;
        }

        /// <summary>
        /// 获取文本
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        internal List<string> GetText()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 获取图像
        /// </summary>
        /// <returns></returns>
        internal Byte[] Render()
        {
            var renderEngine = pdfParser.GetRenderEngine(pageIdx);

            renderEngine.Render();
            return null;
        }

        // 获取图片
    }
}
